# -*- coding: utf-8 -*-

DB_USER = "root"
DB_PASSWORD = "123456"
DB_HOST = "10.200.201.157"
DB_PORT = 3306
DB = "multidelivery"

DB_URI = "mysql+pymysql://{username}:{password}@{host}:{port}/{db}?charset=utf8mb4".format(
        username=DB_USER,
        password=DB_PASSWORD, host=DB_HOST,
        port=DB_PORT, db=DB
    )

SLAVE_DB_URI = None

SQLALCHEMY_ENGINE_OPTIONS = {
    'pool_size': 20,
    'pool_recycle': 3600,
    # 'pool_pre_ping': True
    'echo': False
}